<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>是否为Ajax请求</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="yaf-request-http.getrequest.html">Yaf_Request_Http::getRequest</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.yaf-request-simple.html">Yaf_Request_Simple</a></div>
 <div class="up"><a href="class.yaf-request-http.html">Yaf_Request_Http</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="yaf-request-http.isxmlhttprequest" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Yaf_Request_Http::isXmlHttpRequest</h1>
  <p class="verinfo">(Yaf &gt;=1.0.0)</p><p class="refpurpose"><span class="refname">Yaf_Request_Http::isXmlHttpRequest</span> &mdash; <span class="dc-title">是否为Ajax请求</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-yaf-request-http.isxmlhttprequest-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span> <span class="methodname"><strong>Yaf_Request_Http::isXmlHttpRequest</strong></span>
    ( <span class="methodparam">void</span>
   )</div>

  <p class="para rdfs-comment">
    检查请求是否是Ajax请求
    <blockquote class="note"><p><strong class="note">Note</strong>: 
     <p class="para">
      这个方法取决于请求报头：HTTP_X_REQUESTED_WITH，一些Javascript库在做Ajax请求时候不设置这个报文头。
     </p>
    </p></blockquote>
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-yaf-request-http.isxmlhttprequest-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-yaf-request-http.isxmlhttprequest-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">

  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="yaf-request-http.getrequest.html">Yaf_Request_Http::getRequest</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.yaf-request-simple.html">Yaf_Request_Simple</a></div>
 <div class="up"><a href="class.yaf-request-http.html">Yaf_Request_Http</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
